﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.Infrastructure;
using System.Data.Objects;
using ConfeccionesJR.Repository.Mapping;

namespace ConfeccionesJR.Repository
{
    public  class MasterDataAccess
    {
       
        public MasterDataAccess()
        {
            if (_context == null)
            {
                _context = new JRContext();
                _objectContext = ((IObjectContextAdapter)_context).ObjectContext;
            }
        }

        private JRContext _context;
        protected JRContext Context
        {
            get { return _context; }
        }

        private ObjectContext _objectContext;
        protected ObjectContext ObjectContext
        {
            get {return _objectContext;}
        }

       
    }
}
